package aom.ju.ss.mode

import aom.ju.ss.utils.BigDecimalUtils

data class AllCutMode(
    val code: Int,
    val count: Int,
    val `data`: List<AllCutModeData>?,
    val error_type: Int,
    val mess: String,
    val msg: String,
    val status: Int
)

data class AllCutModeData(
    val cut_help_num: Int,
    val cut_people_total: Int,
    val goods_image: String,
    val goods_name: String,
    val id: Int,
    val is_help: Int,
    val price: String


) {

    var is_helpbai: String = ""
        get() {
            if (cut_help_num != 0 && cut_people_total != 0) {
                field = BigDecimalUtils.div(
                    cut_people_total.toString(),
                    cut_help_num.toString(),
                    2
                )
            } else {
                field = "0"
            }

            return field
        }
}